<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<title>资产出库</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link id="bootstrap-style" href="<c:url value="/css/bootstrap.min.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/bootstrap-responsive.min.css"/>" rel="stylesheet">
	<link id="base-style" href="<c:url value="/css/style.css"/>" rel="stylesheet">
	<link id="base-style-responsive" href="<c:url value="/css/style-responsive.css"/>" rel="stylesheet">
	<link href="<c:url value="/css/index.css"/>" rel="stylesheet">
	<link rel="shortcut icon" href="<c:url value="/img/favicon.ico"/>">
	<link href="<c:url value="/css/page.css"/>" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/jquery.datetimepicker.css"/>"/>
	<link href="<c:url value="/css/but.css"/>" rel="stylesheet">
	<script src="<c:url value="/js/jquery-1.9.1.min.js"/>"></script>
	<script src="<c:url value="/js/jquery-migrate-1.0.0.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/layer/layer.js"/>"></script>
	<script src="<c:url value="/js/laydate/laydate.js"/>"></script>
	<script src="<c:url value="/js/build/jquery.datetimepicker.full.js"/>"></script>
</head>
<script type="text/javascript">
	$(function() {
		var msg = "${msg}";
		if (msg != null && msg != "") {
			alert(msg);
			window.parent.location.reload(); //刷新父页面
			var index = parent.layer.getFrameIndex(window.name);
			parent.layer.close(index);
		}
		$("input[name='isonly']").click(function(){
			if($(this).val() == 1){
				$("#much_div").hide();
				$("#only_div").show();
			}else if($(this).val() == 2){
				$("#only_div").hide();
				$("#much_div").show();
			}
		});
		 laydate.render({
			  elem: '#handleTime'
			  ,type: 'date'
			  ,format: 'yyyy-MM-dd'
			});
	});

	function closebutton() {
		var index = parent.layer.getFrameIndex(window.name);
		parent.layer.close(index);
	}

	function submitForm(){
		 document.forms["frm"].submit();
	 }
</script>
<body>
	<div id="basePath" value="<%=basePath%>" style="display: none;"></div>
	<form name="frm" id="frm" method="post"
		action="<%=basePath%>assets/updateReminding">
		<input type="hidden" id="reid" name="reid" value="${assetsRe.id}">
		<input type="hidden" id="asid" name="asid" value="${asid}">
		<div id="content" class="span10" style="width: 100%;">
			<div style="height: 31px;margin-top: 12px;">
				<input type="radio" name="isonly" value="1" checked="checked">一次性提醒
				<input type="radio" name="isonly" value="2">间隔提醒
			</div>
			<div id="content" class="span10" style="width: 100%;">
				<div class="row-fluid content-search" style="height: 120px;">
					<div id="only_div">
						<span>提醒时间</span> <input style="width: 131px;" id="handleTime" name="handleTime"
							value="${assetsRe.handleTimeString}">
					</div>
					<div id="much_div" style="display: none;">
						提醒周期:<select name="remindingCycle">
							<option value="1">半年</option>
							<option value="2">一年</option>
							<option value="3">三年</option>
							<option value="4">无限制</option>
						</select><br>
						提醒间隔:<select name="remindingInterval">
							<option value="1">一个月</option>
							<option value="2">两个月</option>
							<option value="3">三个月</option>
							<option value="4">半年</option>
						</select>
					</div>
					<div style="margin-top: 10px;">
						<span>提醒内容</span> <textarea style="height: 101px;" id="remindingContent" name="remindingContent" rows="" cols="">${assetsRe.remindingContent}</textarea>
					</div>
				</div>
			</div>
			</div>
	</form>
		<div id="content" class="span10" style="width: 100%;">
			<div class="row-fluid content-search" style="text-align: center;">
				<div>
					<button class="but" style="background-color: #f55353;" type="button"
						onclick="closebutton();" id="output1">关闭</button>
					<button class="but" type="button" id="output" onclick="submitForm();">确定</button>
				</div>
			</div>
		</div>
	<script src="<c:url value="/js/vue.js"/>"></script>
	<script src="<c:url value="/js/vueClick.js"/>"></script>
</body>
</html>
